package com.dongdongshop.service.impl;

import com.dongdongshop.mapper.TbUserMapper;
import com.dongdongshop.pojo.TbAddress;
import com.dongdongshop.pojo.TbUser;
import com.dongdongshop.service.UserService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@DubboService
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private TbUserMapper tbUserMapper;

    @Override
    public void insertRegister(TbUser tbUser) {
        tbUserMapper.insertSelective(tbUser);
    }

    @Override
    public TbUser selectByName(String username) {

        return tbUserMapper.selectByName(username);
    }


}
